<%@ page contentType="text/html;charset=utf-8" language="java"%>
<%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean"%>
<%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
<%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
<html:html>
<head>
		<META http-equiv=Content-Type content="text/html; charset=utf-8">
		<LINK href="../styles/sciencee.css"  type=text/css rel=stylesheet>
		<style type="text/css"></style>
		<title>CGProject</title>
		<html:base/>
</head>
<body>

	<table border="0" width="100%" cellspacing="1" id="table1" height="59" style="border: 1px solid #C0C0C0">
		<tr>
			<td height="25" align="left" bgcolor="#EEF2F7" colspan="4" width="84%">&nbsp;
			<logic:equal name="successFlag" value="Add"><b><bean:message key="addresult"/></b></logic:equal>
			<logic:equal name="successFlag" value="Mod"><b><bean:message key="modifyresult"/></b></logic:equal>
			</td>
		</tr>
		<tr>
			<td height="25" align="left" width="16%" style="border-right: 1px dotted #C0C0C0; border-bottom: 1px dotted #C0C0C0">
			&nbsp;<bean:message key="reguser.name"/></td>
			<td height="25" align="left" width="16%" style="border-right:1px dotted #C0C0C0; border-bottom:1px dotted #C0C0C0; ">
			&nbsp;<bean:message key="employee"/></td>
			<td height="25" align="left" width="38%" style="border-right:1px dotted #C0C0C0; border-bottom:1px dotted #C0C0C0; ">
			&nbsp;<bean:message key="role"/></td>
		</tr>
		<tr>
			<td height="25" align="left" width="16%" style="border-right: 1px dotted #C0C0C0; border-bottom: 1px dotted #C0C0C0">&nbsp;<bean:write name="RegName" property="regName"/></td>
			<td height="25" align="left" width="16%" style="border-right:1px dotted #C0C0C0; border-bottom:1px dotted #C0C0C0; ">&nbsp;<bean:write name="EmpNo" property="empName"/>&nbsp;(<bean:write name="EmpNo" property="employeeId"/>)</td>
			<td height="25" align="left" width="38%" style="border-right:1px dotted #C0C0C0; border-bottom:1px dotted #C0C0C0; ">&nbsp;
			<logic:iterate id="element" name="UserRoles">
				<logic:equal name="element" property="primaryRole" value="1">
					<b><bean:write name="element" property="role.roleName"/></b>
				</logic:equal>
				<logic:notEqual name="element" property="primaryRole" value="1">
					<bean:write name="element" property="role.roleName"/>
				</logic:notEqual >

			</logic:iterate>
			</td>
		</tr>
	</table>
	<tr>
		<td height="25" align="left" width="99%" style="border-left-width: 1px; border-right-style: dotted; border-right-width: 1px; border-top: 1px dotted #C0C0C0; border-bottom: 1px dotted #C0C0C0">
		
		<logic:equal name="successFlag" value="Add"><html:link page="/intoAdd.do"><font face="Verdana" style="font-size: 9pt">[<bean:message key="back"/>]</font></html:link></logic:equal>
		<logic:equal name="successFlag" value="Mod"><html:link page="/index.do"><font face="Verdana" style="font-size: 9pt">[<bean:message key="back"/>]</font></html:link></logic:equal>
</td>
	</tr>

</body>
</html:html>